#include "typedef.h"

typedef struct Test
{
    char *tname;
    boolean (*test_entry)(object);
    int passed;
    int ticks_min;
    int ticks_max;
    int ticks_tot;
} *Test;


#define DEFINE_TEST(name)                  \
    struct Test                            \
        __attribute__((__used__))          \
        __attribute__((section("tester"))) \
        t_##name = {.tname = #name, .test_entry = name, .passed = 0, .ticks_min = -1, .ticks_max = -1};
